#include <iostream>
#include <string>

using namespace std;

class stu
{
private:
    int val ;
public:
    int * ptr;

public:
    stu():val(10)
    {

    }
    stu(int val) : val(val)
    {

    }
public:
    void show()
    {
        cout << val << endl;
        cout << *ptr << endl;
    }
};


int main(int argc, char const *argv[])
{
    
    stu s1(10);
    s1.ptr = new int(80);

    stu s2 = s1;
    *s1.ptr =90;
    s2.show();

    stu s3(s1);
    s3.show();
    
    return 0;
}
